package com.bjpowernode.servlet;

import javax.servlet.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.Writer;

public class ConfigTestServlet2 extends GenericServlet {
    @Override
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        //获取Servlet对象
        ServletConfig config = this.getServletConfig();
        out.print("这个Servlet对象是："+ config);
    }
}
